package com.campus.schedule.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 配送员表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-05-12
 */
@Getter
@Setter
@TableName("delivery")
@ApiModel(value = "Delivery对象", description = "配送员表")
public class Delivery extends IntegerIdBaseEntity<Delivery> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("配送员用户ID")
    @TableField("delivery_user_id")
    private Integer deliveryUserId;

    @ApiModelProperty("姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("身份证")
    @TableField("id_card")
    private String idCard;

    @ApiModelProperty("学生证")
    @TableField("student_card")
    private String studentCard;

    @ApiModelProperty("账户余额")
    @TableField("balance")
    private BigDecimal balance;

    @ApiModelProperty("工作状态：1-可接单，2-休息中")
    @TableField("work_status")
    private Integer workStatus;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
